Fix Xen API's Host.get_record method.
authorKeir Fraser <keir@xensource.com>
Sat, 5 May 2007 10:23:55 +0000 (11:23 +0100)
committerKeir Fraser <keir@xensource.com>
Sat, 5 May 2007 10:23:55 +0000 (11:23 +0100)
Currently it returns supported_bootloaders as a string.  This patch
returns supported_bootloaders as a 'string set' - per the spec.  The
c-bindings fail to parse response, expecting a set but only finding a
string.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
tools/python/xen/xend/XendAPI.py

index a2e1638c52b70a4b2b31ce226062a6b6076501dd..cb644ad0f9ede74aa063a3cc54d4301d68083619 100644 (file)
@@ -1009,7 +1009,7 @@ class XendAPI(object):
                   'cpu_configuration': node.get_cpu_configuration(),
                   'metrics': node.host_metrics_uuid,
                   'capabilities': node.get_capabilities(),
-                  'supported_bootloaders': 'pygrub',
+                  'supported_bootloaders': ['pygrub'],
                   'sched_policy': node.get_vcpus_policy()}
         return xen_api_success(record)